package com.it135.citytraffic.mapper;


import com.it135.citytraffic.pojo.entity.UserRoadReason;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;


/**
 * <p>
 * 用户提交的路段拥堵原因 Mapper 接口
 * </p>
 *
 * @author lh
 * @since 2024-07-17
 */
@Mapper
public interface UserRoadReasonMapper extends BaseMapper<UserRoadReason> {

     ArrayList<UserRoadReason> findAll();

     @Select("select sum(count) from user_road_reason")
     Long getCount();
}
